#ifndef XServerFont_First
#define XServerFont_First
#ifdef __GNUG__
#pragma interface
#endif

#include "X11.h"
#include "Font.h"

class XServerFont: public Font {
	XFont xfid;
public:
	XServerFont(FontFamily *fam, int ps, GrFace fc) : Font(fam, ps, fc)
		{}
	XServerFont(FontFamily*, int, GrFace, XFontStruct*);

	XFont GetId()
		{ return xfid; }
	DevBitmap *CharAsBitmap(u_int c, Point *offset);
	void Scale(int ps);
};

class XFontManager: public FontManager {
public:
	XFontManager() : FontManager()
		{ }
	Font* MakeFont(FontFamily*, int, GrFace, bool dflt);
	Font *ScaleFont(FontFamily *ff, int ps, GrFace face);
};

#endif
